﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualBasic;
using Coldairarrow.Util;
using System.Security.Claims;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 销售报告
    /// </summary>
    /// 
    public class BuyersReturnDTO
    {
        /// <summary>
        /// 退货列表
        /// </summary>
        public List<BuyersReturn> claims { get; set; }

        /// <summary>
        /// 总数
        /// </summary>
        public int total { get; set; }

    }

    public class BuyersReturn
    {
        public string RowId { get; set; }
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 申请来源	
        /// </summary>
        public string claim_type_;
        public string claim_type
        {
            get { return claim_type_; }

            set
            {
                if (value == "1") claim_type_ = "买家账户";
                else if (value == "3") claim_type_ = "聊天";
                else claim_type_ = value;
            }
        }
        /// <summary>
        /// 状态	
        /// </summary>
        public string status_;
        public string status
        {
            get { return status_; }

            set
            {
                if (value == "0") status_ = "审核中";
                else if (value == "1") status_ = "拒绝";
                else if (value == "2") status_ = "已归档";
                else if (value == "3") status_ = "已审核";
                else status_ = value;
            }
        }
        /// <summary>
        /// 产品状态	
        /// </summary>
        public string status_ex_;
        public string status_ex
        {
            get { return status_ex_; }

            set
            {
                if (value == "0") status_ex_ = "审核中";
                else if (value == "1") status_ex_ = "保留给买方";
                else if (value == "2") status_ex_ = "无返回";
                else if (value == "5") status_ex_ = "无返回";
                else if (value == "8") status_ex_ = "售后处理";
                else if (value == "10") status_ex_ = "返回给卖家";
                else status_ex_ = value;
            }
        }
        /// <summary>
        /// 产品平台编码
        /// </summary>
        public string nm_id { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string vendorCode { get; set; }
        /// <summary>
        /// 用户评论	
        /// </summary>
        public string user_comment { get; set; }
        /// <summary>
        /// 平台评论	
        /// </summary>
        public string wb_comment { get; set; }
        /// <summary>
        /// 申请日期	
        /// </summary>
        public string dt { get; set; }
        /// <summary>
        /// 产品名称	
        /// </summary>
        public string imt_name { get; set; }
        /// <summary>
        /// 订单日期	
        /// </summary>
        public string order_dt { get; set; }
        /// <summary>
        /// 更新日期	
        /// </summary>
        public string dt_update { get; set; }
        /// <summary>
        /// 单据动态	
        /// </summary>
        public List<string> actions { get; set; }
        public string actions_s { get; set; }
        /// <summary>
        /// 商品价格	
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 币别代码	
        /// </summary>
        public string currency_code { get; set; }
        /// <summary>
        /// 订单ID	
        /// </summary>
        public string srid { get; set; }

    }

}
